home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_24768_000013.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  2.2 KB

  1. Path: etek.chalmers.se!chalmers.se!sunic!uunet!zaphod.mps.ohio-state.edu!ub!dsinc!bagate!cbmvax!cbmehq!cbmfra!forgeas
  2. From: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680x0 Branch Instructions?
  5. Message-ID: <zADhs*Bb2@swinjm.adsp.sub.org>
  6. Date: 12 Jan 93 12:22:59 GMT
  7. References: <1993Jan7.184445.25823@fcom.cc.utah.edu>
  8. Reply-To: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
  9. Organization: The Software Winery
  10. Lines: 42
  11. X-Newsreader: Arn V1.00 alpha rel2
  12.  
  13. In article <1993Jan7.184445.25823@fcom.cc.utah.edu>, Val Kartchner writes:
  14.  
  15. > I know what the eight common ones do.  (BRA, BSB, BLS, BLE, BEQ, BNE, BGE,
  16. > BGT)  I think that four of the others are used for branches based on
  17. > unsigned compares, but I'm not sure which ones.  (BCS, BCC, BPL, BMI?)
  18. > What practical use are the other four branch instructions?
  19.  
  20. I saved an article from Matt Dillon 2 years ago, it is very
  21. useful :
  22.  
  23. : From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
  24. : Newsgroups: comp.sys.amiga.programmer
  25. : Subject: Re:  Macro-68 Questions
  26. : Message-ID: <dillon.7619@overload.Berkeley.CA.US>
  27. : Date: 12 May 91 17:50:11 GMT
  28. :
  29. :     BCC == BHS      >= 0 unsigned comparison
  30. :     BCS == BLO      <  0 unsigned
  31. :     BHI             >  0 unsigned
  32. :     BLS             <= 0 unsigned
  33. :
  34. :     BGE             >= 0 signed comparison
  35. :     BLT             <  0 signed
  36. :     BGT             >  0 signed
  37. :     BLE             <= 0 signed
  38. :
  39. :     BMI             <  0 after test (note that BLT is < 0 after a signed
  40. :                          compare, same as BMI except that overflow is
  41. :                          checked for.  However, after a TST or MOVE
  42. :                          instruction, BMI is the same as BLT because the
  43. :                          V bit is set to zero).
  44. :     BEQ             == 0
  45. :     BNE             != 0
  46. :
  47. :     BVC             no overflow on signed operation
  48. :     BVS             overflow on signed operation
  49. :
  50. :                                             -Matt
  51. --
  52.  Jean-Michel Forgeas      uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
  53.  16170 Bordeville                            __
  54.  France                                      \/